/*
 * Filename TestUniRecordRepositoryIml.java 2022年04月02日
 * Copyright © Ehome Co.Ltd. All Rgiths Reserved.
 * @author wuyingchao
 */
package com.ehome.poct.core.dao.mybatis;

import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.ehome.mybatisplus.support.AbstractCrudRepository;
import com.ehome.poct.core.api.dto.check.TestUniRecordDTO;
import com.ehome.poct.core.dao.entity.check.TestUniRecordDO;
import com.ehome.poct.core.dao.mybatis.mapper.TestUniRecordMapper;
import com.ehome.poct.core.repository.check.TestUniRecordRepository;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

/**
 * @author wyc
 * @since 2022/04/02 17:43
 **/
@Repository
@AllArgsConstructor
public class TestUniRecordRepositoryIml extends AbstractCrudRepository<TestUniRecordDO, TestUniRecordDTO> implements TestUniRecordRepository {
    private final TestUniRecordMapper mapper;

    @Override
    public void delByOrderNo(String orderNo) {
        mapper.delete(Wrappers.<TestUniRecordDO>lambdaQuery().eq(TestUniRecordDO::getTestOrderNo, orderNo));
    }
}